﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("入库单明细")]
    [Table("t_instockvoucherdetail")]
    [Index(nameof(VoucherCode))]
    public class InStockVoucherDetail : VoucherDetailBase
    {
        public InStockVoucherDetail(Guid keyId)

        {
            this.Id = keyId;
        }
       
        public InStockVoucherDetail()
        {

        }

        public void SetId(Guid keyId)
        {
            this.Id=keyId;
        }
        [Comment("入库数量")]
        public decimal InCount { get; set; }
   
        [Comment("配送单号")]
        public string SupplierDeliveryNo { get; set; }
        [Comment("配送明细ID")]
        public Guid? SupplierDeliveryId { get; set; }
        [Comment("订单号")]
        public string OrderCode { get; set; }
        [Comment("是否唯一码管控")]
        public bool IsBarCodeControl { get; set; } = false;

        [Comment("领用科室Id")]
        public Guid? ReceiveDeptId { get; set; }


        [Comment("领用科室名称")]
        [MaxLength(200)]
        public string ReceiveDeptName { get; set; }

        

    }
}
